import {EntityId, PageQueryParams} from "kf-web-library";

export interface FrontJournalColumnPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  special?: boolean;  //是否特色栏目
  journalId?: EntityId;   //所属期刊
  periodId?: EntityId;    //所属分期
}

export interface FrontJournalColumn {
  id: EntityId; //主键
  name: string; //栏目名称
  introduction: string; //栏目简介
  special: boolean; //是否特色栏目
  specialMarkTime: string; //特色栏目标注时间

  hitsnum: number; //点击数量
  sharenum: number; //转发数量
  likesnum: number; //点赞数量
  collectionnum: number; //收藏数量
  haslikes: boolean; //是否被当前用户点赞
  hascollection: boolean; //是否被当前用户收藏
}

export interface FrontJournalColumn_Detail extends FrontJournalColumn {
  specialMarkUserId: number; //特色栏目标注人id
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
}


export interface JournalColumn_Summary {
  id: EntityId; //主键
  name: string; //栏目名称
}

export interface FrontJournalSpecialColumnPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
}

export interface FrontJournalSpecialColumn{
  id: number; //主键
  languageType: string; //语言类型
  name: string; //栏目名称
  introduction: string; //栏目简介
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
  journalColumnList: FrontJournalColumn[]; //分期栏目
  enable: boolean; //是否启用
}

